package com.j180.mybatisplus_2demo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("t_class")
public class ClassBean implements Serializable {
     @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
     @TableField("name")
     private String name;
     @TableField(exist = false)
     private List<StudentBean> studentBeanList;
}
